
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<base href='{echo:$siteDomain;/}' />
<link rel="stylesheet" type="text/css"
	href="skin/default/jooyea/css/iframe.css" />
<link rel="stylesheet" type="text/css"
	href="servtools/menu_pop/menu_pop.css" />
<link rel="stylesheet" type="text/css"
			href="skin/default/third/jquery/css/ui-lightness/jquery-ui-1.8.24.custom.css"/>
<script type='text/javascript' src='servtools/ajax_client/ajax.js'></script>
{sta:echo $is_self=='Y' ? "
<script type='text/javascript' src='servtools/menu_pop/group_user.php'>
				</script>
" : "";/}
<script type='text/javascript' src="skin/default/js/jooyea.js"></script>
<script type='text/javascript'
	src="skin/default/jooyea/jquery/js/jquery-1.8.2.min.js"></script>
<script type='text/javascript'
	src="skin/default/jooyea/jquery/js/jquery.masonry.min.js"></script>
<script type='text/javascript'
	src="skin/default/jooyea/jquery/js/jquery-ui-1.8.24.custom.min.js"></script>
<script type='text/javascript' src="servtools/menu_pop/menu_pop.js"></script>


<script type="text/javascript">
$(function(){
  $('#photo_container').masonry({
    // options
    itemSelector : '.item',
    columnWidth : 240
  });

  // var $dialog = $('<div></div>');
 
	var addCoatLink = $('#add_coat').one('click', function() {
				addCoatDialog.dialog('open');
				/*
				$dialog
					.load($link.attr('href'))
					.dialog({
						title: $link.attr('title'),
						width: 500,
						height: 300
					});
		*/
		//		$("#add_coat_dialog").slideDown(5000);
				addCoatLink.click(function() {
					addCoatDialog.dialog('open');
					
					return false;
				});
				return false;

	});	
	
	var addCoatDialog = $('#add_coat_dialog').dialog({
			autoOpen:false,
			title:addCoatLink.attr('title'),
			width: 600,
			height: 300
		});
	
	//upload coat dialog

	var uploadCoatDialog =  $('<div></div>');
	var uploadCoatLink = $('#uploadCoatLink').one('click', function() {
		addCoatDialog.dialog('close');
		uploadCoatDialog
			.load(uploadCoatLink.attr('href'))
			.dialog({
				title: uploadCoatLink.attr('title'),
				width: 500,
				height: 300
			});

		uploadCoatLink.click(function(){
			addCoatDialog.dialog('close');
			uploadCoatDialog.dialog('open');
			return false;
		});
		
		return false;
	});

});


</script>
</head>
<body id="iframecontent" oncontextmenu="return false;">
	<div>
		<a id="add_coat" href="modules/album/add_coat.php" title="添加宝贝"> 我买新宝贝啦 </a>
	</div>
	<div class="tab_menu">
		<ul>
			<li><a>最新宝贝</a></li>
			<li>热门宝贝</li>
		</ul>
	</div>
	<div id="photo_container">
		{sta:foreach($photo_rs as $val)[loop]}
		{sta:newline('4');$is_pri=check_pri($val['user_id'],$val['privacy']);/}

		<div class="album_photo_box">
			<a
				href='{echo:$is_pri ? rewrite_fun("modules.php?app=photo&photo_id=".$val['
				photo_id']."&album_id=".$album_id." &user_id=".$user_id) : "javascript:void(0)";/}'>
				<img {sta:if($is_self== 'Y')[exc]}title="{echo:lp{a_tip_pri};/}"
				onmouseDown="menu_pop_show(event,this);"
				id='{echo:$t_photo;/}:{echo:$val['
				photo_id'];/}:{echo:$val['privacy'];/}' {end:if/} src={echo:$is_pri
				? $val['photo_thumb_src'] : "skin/$skinUrl/images/error.gif";/}
			class="user_ico" />
			</a>
			<div class="album_photo_info">
				<div class="item_price">
					<span>购买价格: 2001RMB</span> <span>2011-12-24</span>
				</div>
				<div>
					<p>
						<img src="skin/default/jooyea/images/upload_coat.gif" alt=""
							class="user_portrait_img" /><a>kelfen:</a> 在北京新天地购买的， 超级便宜 物超所值呀
					</p>
				</div>
				<div class="item_comment_link">
					<a>转发</a><a><span>评论(20)</span></a>
				</div>
			</div>

			<div style="clear: both"></div>

		</div>
		{end:foreach/}
	</div>
	<div class="clear"></div>
	{sta:page_show($isNull,$page_num,$page_total);/}

	<div class="tleft ml20">
		<div class="comment">
			<div id='show_2_{echo:$album_row["album_id"];/}'>
				<script type='text/javascript'>parent.get_mod_com(2,{echo:$album_row['album_id'];/},0,20);</script>
			</div>
			{sta:if($ses_uid!='')[exc]}
			<div class="reply">
				<img class="figure" src="{echo:get_sess_userico();/}" />
				<p>
					<textarea type="text" maxlength="150"
						onkeyup="return isMaxLen(this)"
						id="reply_2_{echo:$album_row['album_id'];/}_input"></textarea>
				</p>
				<div class="replybt">
					<input class="left button"
						onclick="parent.restore_com({echo:$album_row['user_id'];/},2,{echo:$album_row['album_id'];/});show('face_list_menu',200);"
						type="submit" name="button" id="button"
						value="{echo:lp{a_b_com};/}" /> <a
						id="reply_a_{echo:$blog_row['log_id'];/}_input" class="right"
						href="javascript: void(0);"
						onclick="showFace(this,'face_list_menu','reply_2_{echo:$album_row['album_id'];/}_input');">{echo:lp{a_face};/}</a>
				</div>
				<div class="clear"></div>
			</div>
			{end:if/}
		</div>
	</div>
	<div id="face_list_menu" class="emBg"
		style="display: none; z-index: 100;"></div>
	<div class="guide_info {echo:$none_photo;/}">{echo:$no_pht;/}</div>
	
	<div id="add_coat_dialog">
		<div id="OpenLinks">
			<div class="cell">	
				<p>
					拖动此链接至您的浏览器书签栏:
				</p>
	                <a><span>喜欢</span></a><br></br>
	           		 这么好的工具还不会用吗？<a>寻求帮助</a>
			</div>
			<a id="uploadCoatLink"  class="cell" href="modules/album/coat_upload.php">
				<div class="icon" id="upload"></div> <span>Upload a Pin</span>
			</a>
			 <a id="OpenCreateDrawers" class="cell">
				<div class="icon" id="board"></div> <span>Create a Board</span>
			</a>
		</div>
	</div>
</body>
</html>